<?php
/**
 * 读取文件
 * __DIR__
 */
$result = Swoole\Async::readfile(__DIR__.'/1.txt',function($filename,$fileContent){
    echo 'filename'.$filename.PHP_EOL;

    echo 'content:'.$fileContent.PHP_EOL;
});

var_dump($result);
echo 'start'.PHP_EOL;
